package com.jy.rhin.model.header;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Data;

/**
 * @Author 姚俊
 * @Date 2023/2/2 17:23
 * @Description 患者角色
 */
@Data
public class PatientRole {

    //出生医学证明编号
    @XPath(path = "/id[@root='2.16.156.10011.1.9']/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_006_00,nullable=true))
    String chuShengYXZMBH;
    //健康档案标识号
    @XPath(path = "/id[@root='2.16.156.10011.1.2']/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_009_00,nullable=true))
    String id;
    //住院号标识
    @XPath(path = "/id[@root='2.16.156.10011.1.13']/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_004_00,nullable=true))
    String zhuYuanHBS;
    //会诊记录表编号
    @XPath(path = "/id[@root='2.16.156.10011.1.16']/@extension", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_008_00,nullable=true))
    String huiZhengJLBBH;
    //病案号标识
    @XPath(path = "/id[@root='2.16.156.10011.1.13']/@extension"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE01_00_004_00,nullable=true))
    String bingAnHBS;
    @XPath(path = "/telecom/@value"
            , xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE02_01_010_00,nullable=true))
    String telecom;
    @XPath(path = "/addr")
    Addr addr;
    @XPath(path = "/patient")
    Patient patient;
}
